/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.KeyNamePair;

/** Generated Model for hrm_settingsPayments
 *  @author Adempiere (generated) 
 *  @version Release 3.7.0LTS - $Id$ */
public class X_hrm_settingsPayments extends PO implements I_hrm_settingsPayments, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20130727L;

    /** the default Constructor */
    public X_hrm_settingsPayments(Properties ctx)
    { 
      super (ctx, null, null);
    } 

    /** Standard Constructor */
    public X_hrm_settingsPayments (Properties ctx, int hrm_settingsPayments_ID, String trxName)
    {
      super (ctx, hrm_settingsPayments_ID, trxName);
      /** if (hrm_settingsPayments_ID == 0)
        {
			setC_Bank_ID (0);
			setC_BankAccount_ID (0);
			setC_BP_BankAccount_ID (0);
			setC_BPartner_ID (0);
			setC_DocType_ID (0);
			setFI_Form3_ID (0);
			setFI_PPC_ID (0);
			sethrm_settingsPayments_ID (0);
			sethrm_typeOperation (null);
			setName (null);
        } */
    }

    /** Load Constructor */
    public X_hrm_settingsPayments (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_hrm_settingsPayments[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	public org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException
    {
		return (org.compiere.model.I_C_Bank)MTable.get(getCtx(), org.compiere.model.I_C_Bank.Table_Name)
			.getPO(getC_Bank_ID(), get_TrxName());	}

	/** Set Bank.
		@param C_Bank_ID 
		Bank
	  */
	public void setC_Bank_ID (int C_Bank_ID)
	{
		if (C_Bank_ID < 1) 
			set_Value (COLUMNNAME_C_Bank_ID, null);
		else 
			set_Value (COLUMNNAME_C_Bank_ID, Integer.valueOf(C_Bank_ID));
	}

	/** Get Bank.
		@return Bank
	  */
	public int getC_Bank_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_Bank_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException
    {
		return (org.compiere.model.I_C_BankAccount)MTable.get(getCtx(), org.compiere.model.I_C_BankAccount.Table_Name)
			.getPO(getC_BankAccount_ID(), get_TrxName());	}

	/** Set Bank Account.
		@param C_BankAccount_ID 
		Account at the Bank
	  */
	public void setC_BankAccount_ID (int C_BankAccount_ID)
	{
		if (C_BankAccount_ID < 1) 
			set_Value (COLUMNNAME_C_BankAccount_ID, null);
		else 
			set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID));
	}

	/** Get Bank Account.
		@return Account at the Bank
	  */
	public int getC_BankAccount_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_BP_BankAccount getC_BP_BankAccount() throws RuntimeException
    {
		return (org.compiere.model.I_C_BP_BankAccount)MTable.get(getCtx(), org.compiere.model.I_C_BP_BankAccount.Table_Name)
			.getPO(getC_BP_BankAccount_ID(), get_TrxName());	}

	/** Set Partner Bank Account.
		@param C_BP_BankAccount_ID 
		Bank Account of the Business Partner
	  */
	public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID)
	{
		if (C_BP_BankAccount_ID < 1) 
			set_Value (COLUMNNAME_C_BP_BankAccount_ID, null);
		else 
			set_Value (COLUMNNAME_C_BP_BankAccount_ID, Integer.valueOf(C_BP_BankAccount_ID));
	}

	/** Get Partner Bank Account.
		@return Bank Account of the Business Partner
	  */
	public int getC_BP_BankAccount_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_BankAccount_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
    {
		return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
			.getPO(getC_BPartner_ID(), get_TrxName());	}

	/** Set Business Partner .
		@param C_BPartner_ID 
		Identifies a Business Partner
	  */
	public void setC_BPartner_ID (int C_BPartner_ID)
	{
		if (C_BPartner_ID < 1) 
			set_Value (COLUMNNAME_C_BPartner_ID, null);
		else 
			set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
	}

	/** Get Business Partner .
		@return Identifies a Business Partner
	  */
	public int getC_BPartner_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException
    {
		return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_Name)
			.getPO(getC_DocType_ID(), get_TrxName());	}

	/** Set Document Type.
		@param C_DocType_ID 
		Document type or rules
	  */
	public void setC_DocType_ID (int C_DocType_ID)
	{
		if (C_DocType_ID < 0) 
			set_Value (COLUMNNAME_C_DocType_ID, null);
		else 
			set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));
	}

	/** Get Document Type.
		@return Document type or rules
	  */
	public int getC_DocType_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_FI_Form3 getFI_Form3() throws RuntimeException
    {
		return (I_FI_Form3)MTable.get(getCtx(), I_FI_Form3.Table_Name)
			.getPO(getFI_Form3_ID(), get_TrxName());	}

	/** Set FI Form 3 ID.
		@param FI_Form3_ID FI Form 3 ID	  */
	public void setFI_Form3_ID (int FI_Form3_ID)
	{
		if (FI_Form3_ID < 1) 
			set_Value (COLUMNNAME_FI_Form3_ID, null);
		else 
			set_Value (COLUMNNAME_FI_Form3_ID, Integer.valueOf(FI_Form3_ID));
	}

	/** Get FI Form 3 ID.
		@return FI Form 3 ID	  */
	public int getFI_Form3_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_FI_Form3_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_FI_Form3Explanation getFI_Form3Explanation() throws RuntimeException
    {
		return (I_FI_Form3Explanation)MTable.get(getCtx(), I_FI_Form3Explanation.Table_Name)
			.getPO(getFI_Form3Explanation_ID(), get_TrxName());	}

	/** Set FI_Form3Explanation.
		@param FI_Form3Explanation_ID FI_Form3Explanation	  */
	public void setFI_Form3Explanation_ID (int FI_Form3Explanation_ID)
	{
		if (FI_Form3Explanation_ID < 1) 
			set_Value (COLUMNNAME_FI_Form3Explanation_ID, null);
		else 
			set_Value (COLUMNNAME_FI_Form3Explanation_ID, Integer.valueOf(FI_Form3Explanation_ID));
	}

	/** Get FI_Form3Explanation.
		@return FI_Form3Explanation	  */
	public int getFI_Form3Explanation_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_FI_Form3Explanation_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_FI_PPC getFI_PPC() throws RuntimeException
    {
		return (I_FI_PPC)MTable.get(getCtx(), I_FI_PPC.Table_Name)
			.getPO(getFI_PPC_ID(), get_TrxName());	}

	/** Set FI_PPC_ID.
		@param FI_PPC_ID FI_PPC_ID	  */
	public void setFI_PPC_ID (int FI_PPC_ID)
	{
		if (FI_PPC_ID < 1) 
			set_Value (COLUMNNAME_FI_PPC_ID, null);
		else 
			set_Value (COLUMNNAME_FI_PPC_ID, Integer.valueOf(FI_PPC_ID));
	}

	/** Get FI_PPC_ID.
		@return FI_PPC_ID	  */
	public int getFI_PPC_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_FI_PPC_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_FI_TypeOfTax getFI_TypeOfTax() throws RuntimeException
    {
		return (I_FI_TypeOfTax)MTable.get(getCtx(), I_FI_TypeOfTax.Table_Name)
			.getPO(getFI_TypeOfTax_ID(), get_TrxName());	}

	/** Set FI_TypeOfTax.
		@param FI_TypeOfTax_ID FI_TypeOfTax	  */
	public void setFI_TypeOfTax_ID (int FI_TypeOfTax_ID)
	{
		if (FI_TypeOfTax_ID < 1) 
			set_Value (COLUMNNAME_FI_TypeOfTax_ID, null);
		else 
			set_Value (COLUMNNAME_FI_TypeOfTax_ID, Integer.valueOf(FI_TypeOfTax_ID));
	}

	/** Get FI_TypeOfTax.
		@return FI_TypeOfTax	  */
	public int getFI_TypeOfTax_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_FI_TypeOfTax_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set hrm_settingsPayments.
		@param hrm_settingsPayments_ID hrm_settingsPayments	  */
	public void sethrm_settingsPayments_ID (int hrm_settingsPayments_ID)
	{
		if (hrm_settingsPayments_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_hrm_settingsPayments_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_hrm_settingsPayments_ID, Integer.valueOf(hrm_settingsPayments_ID));
	}

	/** Get hrm_settingsPayments.
		@return hrm_settingsPayments	  */
	public int gethrm_settingsPayments_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_settingsPayments_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** hrm_typeOperation AD_Reference_ID=1000118 */
	public static final int HRM_TYPEOPERATION_AD_Reference_ID=1000118;
	/** BONUS = BONUS */
	public static final String HRM_TYPEOPERATION_BONUS = "BONUS";
	/** BUSINESSTRIP = BUSINESSTRIP */
	public static final String HRM_TYPEOPERATION_BUSINESSTRIP = "BUSINESSTRIP";
	/** MATERIALAID = MATERIALAID */
	public static final String HRM_TYPEOPERATION_MATERIALAID = "MATERIALAID";
	/** REVIEW = REVIEW */
	public static final String HRM_TYPEOPERATION_REVIEW = "REVIEW";
	/** VACATION = VACATION */
	public static final String HRM_TYPEOPERATION_VACATION = "VACATION";
	/** CNALOG = CNALOG */
	public static final String HRM_TYPEOPERATION_CNALOG = "CNALOG";
	/** COTCH = COTCH */
	public static final String HRM_TYPEOPERATION_COTCH = "COTCH";
	/** IPN = IPN */
	public static final String HRM_TYPEOPERATION_IPN = "IPN";
	/** OPV = OPV */
	public static final String HRM_TYPEOPERATION_OPV = "OPV";
	/** SALARY = SALARY */
	public static final String HRM_TYPEOPERATION_SALARY = "SALARY";
	/** PREPAYMENT = PREPAYMENT */
	public static final String HRM_TYPEOPERATION_PREPAYMENT = "PREPAYMENT";
	/** Set hrm_typeOperation.
		@param hrm_typeOperation hrm_typeOperation	  */
	public void sethrm_typeOperation (String hrm_typeOperation)
	{

		set_Value (COLUMNNAME_hrm_typeOperation, hrm_typeOperation);
	}

	/** Get hrm_typeOperation.
		@return hrm_typeOperation	  */
	public String gethrm_typeOperation () 
	{
		return (String)get_Value(COLUMNNAME_hrm_typeOperation);
	}

	/** Set Name.
		@param Name 
		Alphanumeric identifier of the entity
	  */
	public void setName (String Name)
	{
		set_Value (COLUMNNAME_Name, Name);
	}

	/** Get Name.
		@return Alphanumeric identifier of the entity
	  */
	public String getName () 
	{
		return (String)get_Value(COLUMNNAME_Name);
	}

    /** Get Record ID/ColumnName
        @return ID/ColumnName pair
      */
    public KeyNamePair getKeyNamePair() 
    {
        return new KeyNamePair(get_ID(), getName());
    }
}